<template>
  <div class="loopTip">
    <!-- 轮播图 -->
    <!-- ref="bgColor" -->
    <!-- :style="bgStyle" -->
    <div ref="bgColor" class="swiper-container" style="">
      <div class="swiper-wrapper">
        <div
          class="swiper-slide"
          v-for="banner in bannerImgList"
          :key="banner.bannerId"
        >
          <img ref="dataMsg" :src="(cc = banner.pic)" alt="" />
          <!-- <img src="./images/banner1.jpg" /> -->
        </div>
        <!-- <div class="swiper-slide">
          <img src="./images/banner2.jpg" />
        </div>
        <div class="swiper-slide">
          <img src="./images/banner3.jpg" />
        </div> -->

        <div class="swiper-right">
          <img src="./images/download.png" alt="" />
        </div>
      </div>
      <!-- background-image: url("http://p1.music.126.net/BRDSxd1zrF0QuPZKgcsa-g==/109951167767851512.jpg?imageView&blur=40x20"); background-size: 6000px; background-position: center center; -->
      <!-- 右侧固定图 -->

      <!-- 如果需要分页器 -->
      <div class="swiper-pagination"></div>

      <!-- 如果需要导航按钮 -->
      <div class="swiper-button-prev"></div>
      <div class="swiper-button-next"></div>

      <!-- 如果需要滚动条 -->
      <!--   <div class="swiper-scrollbar"></div> -->
    </div>
    <!-- body部分 -->
    <div class="middle">
      <div class="middle-content">
        <div class="middle-left">
          <!-- 热推 -->
          <div class="middle-left-categoryHot">
            <!-- 头部 -->
            <div class="categoryHot-nav">
              <div class="icon-cent">
                <div class="icons">
                  <div></div>
                  热门推荐
                </div>
              </div>
              <!-- 分类列表项 -->
              <div class="categoryHot-list">
                <ul class="categoryHot-nav-list">
                  <li><a href="javascript:;">华语</a></li>
                  <li><a href="javascript:;">流行</a></li>
                  <li><a href="javascript:;">民谣</a></li>
                  <li><a href="javascript:;">电子</a></li>
                </ul>
              </div>
              <p>
                <a href="javascript:;">
                  更多<span class="iconfont icon-youjiantou"></span
                ></a>
              </p>
            </div>
            <!-- 中间内容 分类 -->
            <div class="categoryHot-content">
              <ul class="categoryHot-music-list">
                <li>
                  <div>
                    <img src="./images/middle/category1.jpg" alt="" />
                    <p></p>
                  </div>

                  <a href="javascript:;">开口沉醉 · 慵懒迷幻的欧美女声</a>
                </li>
                <li>
                  <div>
                    <img src="./images/middle/category2.jpg" alt="" />
                    <p></p>
                  </div>

                  <a href="javascript:;">开口沉醉 · 慵懒迷幻的欧美女声</a>
                </li>
                <li>
                  <div>
                    <img src="./images/middle/category3.jpg" alt="" />
                    <p></p>
                  </div>

                  <a href="javascript:;">开口沉醉 · 慵懒迷幻的欧美女声</a>
                </li>
                <li>
                  <div>
                    <img src="./images/middle/category4.jpg" alt="" />
                  </div>

                  <a href="javascript:;">开口沉醉 · 慵懒迷幻的欧美女声</a>
                </li>
                <li>
                  <div>
                    <img src="./images/middle/category5.jpg" alt="" />
                  </div>

                  <a href="javascript:;">开口沉醉 · 慵懒迷幻的欧美女声</a>
                </li>
                <li>
                  <div>
                    <img src="./images/middle/category6.jpg" alt="" />
                  </div>

                  <a href="javascript:;">开口沉醉 · 慵懒迷幻的欧美女声</a>
                </li>
                <li>
                  <div>
                    <img src="./images/middle/category7.jpg" alt="" />
                  </div>

                  <a href="javascript:;">开口沉醉 · 慵懒迷幻的欧美女声</a>
                </li>
                <li>
                  <div>
                    <img src="./images/middle/category8.jpg" alt="" />
                  </div>

                  <a href="javascript:;">开口沉醉 · 慵懒迷幻的欧美女声</a>
                </li>
              </ul>
            </div>
          </div>
          <!-- 个性化推荐 -->
          <div class="middle-left-categoryHot">
            <!-- 头部 -->
            <div class="categoryHot-nav">
              <div class="icon-cent">
                <div class="icons">
                  <div></div>
                  个性化推荐
                </div>
              </div>

              <p>
                <a href="javascript:;">
                  更多<span class="iconfont icon-youjiantou"></span
                ></a>
              </p>
            </div>
            <!-- 中间内容 分类 -->
            <div class="categoryHot-content">
              <ul class="categoryHot-music-list">
                <li>
                  <div>
                    <img src="./images/middle/category1.jpg" alt="" />
                    <p></p>
                  </div>

                  <a href="javascript:;">开口沉醉 · 慵懒迷幻的欧美女声</a>
                </li>
                <li>
                  <div>
                    <img src="./images/middle/category2.jpg" alt="" />
                    <p></p>
                  </div>

                  <a href="javascript:;">开口沉醉 · 慵懒迷幻的欧美女声</a>
                </li>
                <li>
                  <div>
                    <img src="./images/middle/category3.jpg" alt="" />
                    <p></p>
                  </div>

                  <a href="javascript:;">开口沉醉 · 慵懒迷幻的欧美女声</a>
                </li>
                <li>
                  <div>
                    <img src="./images/middle/category4.jpg" alt="" />
                  </div>

                  <a href="javascript:;">开口沉醉 · 慵懒迷幻的欧美女声</a>
                </li>
                <li>
                  <div>
                    <img src="./images/middle/category5.jpg" alt="" />
                  </div>

                  <a href="javascript:;">开口沉醉 · 慵懒迷幻的欧美女声</a>
                </li>
                <li>
                  <div>
                    <img src="./images/middle/category6.jpg" alt="" />
                  </div>

                  <a href="javascript:;">开口沉醉 · 慵懒迷幻的欧美女声</a>
                </li>
                <li>
                  <div>
                    <img src="./images/middle/category7.jpg" alt="" />
                  </div>

                  <a href="javascript:;">开口沉醉 · 慵懒迷幻的欧美女声</a>
                </li>
                <li>
                  <div>
                    <img src="./images/middle/category8.jpg" alt="" />
                  </div>

                  <a href="javascript:;">开口沉醉 · 慵懒迷幻的欧美女声</a>
                </li>
              </ul>
            </div>
          </div>
          <!-- 新碟推荐 -->
          <div class="middle-left-categoryHot">
            <!-- 头部 -->
            <div class="categoryHot-nav">
              <div class="icon-cent">
                <div class="icons">
                  <div></div>
                  新碟推荐
                </div>
              </div>

              <p>
                <a href="javascript:;">
                  更多<span class="iconfont icon-youjiantou"></span
                ></a>
              </p>
            </div>
            <!-- 中间内容 分类 -->
            <div class="categoryHot-content">
              <ul class="categoryHot-music-list">
                <li>
                  <div>
                    <img src="./images/middle/category1.jpg" alt="" />
                    <p></p>
                  </div>

                  <a href="javascript:;">开口沉醉 · 慵懒迷幻的欧美女声</a>
                </li>
                <li>
                  <div>
                    <img src="./images/middle/category2.jpg" alt="" />
                    <p></p>
                  </div>

                  <a href="javascript:;">开口沉醉 · 慵懒迷幻的欧美女声</a>
                </li>
                <li>
                  <div>
                    <img src="./images/middle/category3.jpg" alt="" />
                    <p></p>
                  </div>

                  <a href="javascript:;">开口沉醉 · 慵懒迷幻的欧美女声</a>
                </li>
                <li>
                  <div>
                    <img src="./images/middle/category4.jpg" alt="" />
                  </div>

                  <a href="javascript:;">开口沉醉 · 慵懒迷幻的欧美女声</a>
                </li>
                <li>
                  <div>
                    <img src="./images/middle/category5.jpg" alt="" />
                  </div>

                  <a href="javascript:;">开口沉醉 · 慵懒迷幻的欧美女声</a>
                </li>
                <li>
                  <div>
                    <img src="./images/middle/category6.jpg" alt="" />
                  </div>

                  <a href="javascript:;">开口沉醉 · 慵懒迷幻的欧美女声</a>
                </li>
                <li>
                  <div>
                    <img src="./images/middle/category7.jpg" alt="" />
                  </div>

                  <a href="javascript:;">开口沉醉 · 慵懒迷幻的欧美女声</a>
                </li>
                <li>
                  <div>
                    <img src="./images/middle/category8.jpg" alt="" />
                  </div>

                  <a href="javascript:;">开口沉醉 · 慵懒迷幻的欧美女声</a>
                </li>
              </ul>
            </div>
          </div>
          <!-- 排行榜 -->
          <div class="middle-left-ranking">
            <!-- 头部 -->
            <div class="categoryHot-nav">
              <div class="icon-cent">
                <div class="icons">
                  <div></div>
                  排行榜
                </div>
              </div>

              <p>
                <a href="javascript:;">
                  更多<span class="iconfont icon-youjiantou"></span
                ></a>
              </p>
            </div>
            <!-- 中间内容 排行分类 -->
            <div class="ranking-content">
              <div class="ranking-List1">
                <div class="ranking-List1-img">
                  <img src="./images/middle/ranking/ranking1.jpg" alt="" />
                  <div class="ranking-List1-content">
                    <a href="javascript:;" title="飙升榜">
                      <h3>飙升榜</h3>
                    </a>
                    <!-- 准备放图标 -->
                    <div></div>
                  </div>
                </div>
                <ul class="ranking-List1-body">
                  <li class="cc">
                    <div class="ranking-List-body-num">0</div>
                    <div class="ranking-List-body-text">一直很安静</div>
                  </li>
                  <li class="cc">
                    <div class="ranking-List-body-num">1</div>
                    <div class="ranking-List-body-text">一直很安静</div>
                  </li>
                  <li class="cc">
                    <div class="ranking-List-body-num">2</div>
                    <div class="ranking-List-body-text">一直很安静</div>
                  </li>
                  <li class="cc">
                    <div class="ranking-List-body-num">3</div>
                    <div class="ranking-List-body-text">一直很安静</div>
                  </li>
                  <li class="cc">
                    <div class="ranking-List-body-num">4</div>
                    <div class="ranking-List-body-text">一直很安静</div>
                  </li>
                  <li class="cc">
                    <div class="ranking-List-body-num">5</div>
                    <div class="ranking-List-body-text">一直很安静</div>
                  </li>
                  <li class="cc">
                    <div class="ranking-List-body-num">6</div>
                    <div class="ranking-List-body-text">一直很安静</div>
                  </li>
                  <li class="cc">
                    <div class="ranking-List-body-num">7</div>
                    <div class="ranking-List-body-text">一直很安静</div>
                  </li>
                  <li class="cc search">
                    <a href="javascript:;">查看全部></a>
                  </li>
                </ul>
              </div>
              <div class="ranking-List1">
                <div class="ranking-List1-img">
                  <img src="./images/middle/ranking/ranking2.jpg" alt="" />
                  <div class="ranking-List1-content">
                    <a href="javascript:;" title="飙升榜">
                      <h3>新歌榜</h3>
                    </a>
                    <!-- 准备放图标 -->
                    <div></div>
                  </div>
                </div>
                <ul class="ranking-List1-body">
                  <li class="cc">
                    <div class="ranking-List-body-num">0</div>
                    <div class="ranking-List-body-text">一直很安静</div>
                  </li>
                  <li class="cc">
                    <div class="ranking-List-body-num">1</div>
                    <div class="ranking-List-body-text">一直很安静</div>
                  </li>
                  <li class="cc">
                    <div class="ranking-List-body-num">2</div>
                    <div class="ranking-List-body-text">一直很安静</div>
                  </li>
                  <li class="cc">
                    <div class="ranking-List-body-num">3</div>
                    <div class="ranking-List-body-text">一直很安静</div>
                  </li>
                  <li class="cc">
                    <div class="ranking-List-body-num">4</div>
                    <div class="ranking-List-body-text">一直很安静</div>
                  </li>
                  <li class="cc">
                    <div class="ranking-List-body-num">5</div>
                    <div class="ranking-List-body-text">一直很安静</div>
                  </li>
                  <li class="cc">
                    <div class="ranking-List-body-num">6</div>
                    <div class="ranking-List-body-text">一直很安静</div>
                  </li>
                  <li class="cc">
                    <div class="ranking-List-body-num">7</div>
                    <div class="ranking-List-body-text">一直很安静</div>
                  </li>
                  <li class="cc search">
                    <a href="javascript:;">查看全部></a>
                  </li>
                </ul>
              </div>
              <div class="ranking-List1">
                <div class="ranking-List1-img">
                  <img src="./images/middle/ranking/ranking3.jpg" alt="" />
                  <div class="ranking-List1-content">
                    <a href="javascript:;" title="飙升榜">
                      <h3>原创榜</h3>
                    </a>
                    <!-- 准备放图标 -->
                    <div></div>
                  </div>
                </div>
                <ul class="ranking-List1-body">
                  <li class="cc">
                    <div class="ranking-List-body-num">0</div>
                    <div class="ranking-List-body-text">一直很安静</div>
                  </li>
                  <li class="cc">
                    <div class="ranking-List-body-num">1</div>
                    <div class="ranking-List-body-text">一直很安静</div>
                  </li>
                  <li class="cc">
                    <div class="ranking-List-body-num">2</div>
                    <div class="ranking-List-body-text">一直很安静</div>
                  </li>
                  <li class="cc">
                    <div class="ranking-List-body-num">3</div>
                    <div class="ranking-List-body-text">一直很安静</div>
                  </li>
                  <li class="cc">
                    <div class="ranking-List-body-num">4</div>
                    <div class="ranking-List-body-text">一直很安静</div>
                  </li>
                  <li class="cc">
                    <div class="ranking-List-body-num">5</div>
                    <div class="ranking-List-body-text">一直很安静</div>
                  </li>
                  <li class="cc">
                    <div class="ranking-List-body-num">6</div>
                    <div class="ranking-List-body-text">一直很安静</div>
                  </li>
                  <li class="cc">
                    <div class="ranking-List-body-num">7</div>
                    <div class="ranking-List-body-text">一直很安静</div>
                  </li>
                  <li class="cc search">
                    <a href="javascript:;">查看全部></a>
                  </li>
                </ul>
              </div>
            </div>
          </div>
        </div>
        <div class="middle-right">
          <!-- 个人信息 -->
          <div class="middle-right-user">
            <div class="middle-right-userInfo">
              <!-- 个人头像 -->
              <div class="user-img">
                <img
                  src="./images/middle-right/userHeader.jpg"
                  alt="头像"
                  style=""
                />
              </div>
              <!-- 个人信息 -->
              <div class="user-Message">
                <h3 class="user-name">
                  用户名 <span class="iconfont icon-vip-f"></span>
                </h3>
                <div class="vip"><span class="iconfont icon-4"></span></div>
                <div class="sign-in">
                  <button><a href="javascript:;">签到</a></button>
                </div>
              </div>
              <!-- 属性列表 -->
              <ul class="proptype-list">
                <li>
                  <div>
                    <p>10</p>
                    <a href="javascript:;">动态</a>
                  </div>
                </li>
                <li>
                  <div>
                    <p>20</p>
                    <a href="javascript:;">关注</a>
                  </div>
                </li>
                <li>
                  <div>
                    <p>30</p>
                    <a href="javascript:;">粉丝</a>
                  </div>
                </li>
              </ul>
            </div>
          </div>
          <!-- 入住歌手 -->
          <div class="middle-right-singer">
            <h3 class="singer-title">
              <p>入驻歌手</p>
              <a href="javascript:;">查看全部></a>
            </h3>
            <ul class="singer-list">
              <li>
                <a href="javascript:;">
                  <img
                    src="./images/middle-right/singer/singer1.jpg"
                    alt="歌手图片
                    "
                  />
                  <div class="singer-message">
                    <h4>
                      <span>张惠妹aMEI</span>
                    </h4>
                    <p>台湾歌手张惠妹</p>
                  </div>
                </a>
              </li>
              <li>
                <a href="javascript:;">
                  <img
                    src="./images/middle-right/singer/singer2.jpg"
                    alt="歌手图片
                    "
                  />
                  <div class="singer-message">
                    <h4>
                      <span>张惠妹aMEI</span>
                    </h4>
                    <p>台湾歌手张惠妹</p>
                  </div>
                </a>
              </li>
              <li>
                <a href="javascript:;">
                  <img
                    src="./images/middle-right/singer/singer3.jpg"
                    alt="歌手图片
                    "
                  />
                  <div class="singer-message">
                    <h4>
                      <span>张惠妹aMEI</span>
                    </h4>
                    <p>台湾歌手张惠妹</p>
                  </div>
                </a>
              </li>
              <li>
                <a href="javascript:;">
                  <img
                    src="./images/middle-right/singer/singer4.jpg"
                    alt="歌手图片
                    "
                  />
                  <div class="singer-message">
                    <h4>
                      <span>张惠妹aMEI</span>
                    </h4>
                    <p>台湾歌手张惠妹</p>
                  </div>
                </a>
              </li>
              <li>
                <a href="javascript:;">
                  <img
                    src="./images/middle-right/singer/singer5.jpg"
                    alt="歌手图片
                    "
                  />
                  <div class="singer-message">
                    <h4>
                      <span>张惠妹aMEI</span>
                    </h4>
                    <p>台湾歌手张惠妹</p>
                  </div>
                </a>
              </li>
            </ul>
            <div class="changeSc">
              <button>申请成为网易音乐人</button>
            </div>
          </div>
          <!-- 热门主播 -->
          <div class="middle-right-zhubo">
            <h3>热门主播</h3>
            <ul class="zhubo-list">
              <li>
                <img src="./images/middle-right/zhubo/zhubo1.jpg" alt="" />
                <div>
                  <p class="zhubo-name">成立</p>
                  <p class="zhubo-message">歌手、播客节目《维维道来》主理人</p>
                </div>
              </li>
              <li>
                <img src="./images/middle-right/zhubo/zhubo2.jpg" alt="" />
                <div>
                  <p class="zhubo-name">刘维-Julius</p>
                  <p class="zhubo-message">歌手、播客节目《维维道来》主理人</p>
                </div>
              </li>
              <li>
                <img src="./images/middle-right/zhubo/zhubo3.jpg" alt="" />
                <div>
                  <p class="zhubo-name">莫非定律MoreFeel</p>
                  <p class="zhubo-message">歌手、播客节目《维维道来》主理人</p>
                </div>
              </li>
              <li>
                <img src="./images/middle-right/zhubo/zhubo4.jpg" alt="" />
                <div>
                  <p class="zhubo-name">碎嘴许美达</p>
                  <p class="zhubo-message">歌手、播客节目《维维道来》主理人</p>
                </div>
              </li>
              <li>
                <img src="./images/middle-right/zhubo/zhubo5.jpg" alt="" />
                <div>
                  <p class="zhubo-name">银临Rachel</p>
                  <p class="zhubo-message">歌手、播客节目《维维道来》主理人</p>
                </div>
              </li>
            </ul>
          </div>
        </div>
      </div>
    </div>
  </div>
</template>

<script>
import { reqHomePageList } from "@/api";
// 引入swiper插件
import Swiper from "swiper";
export default {
  name: "Home",
  data() {
    return {
      bannerImgList: [],
      showBgImg: "",
      // dataMsg: "",
      cc: [],
      bgStyle: {},
    };
  },

  methods: {
    // // 创建获取主页 请求的函数
    async getHomePageList() {
      const result = await reqHomePageList();
      this.bannerImgList = result.data.blocks[0].extInfo.banners;
      console.log("首页参数", result.data.blocks[0].extInfo.banners);
    },
  },
  // 注意swiper在初始化的时机,在swiper渲染的图片类表得到数据时发送请求,启动swiper
  watch: {
    bannerImgList(vla) {
      this.$nextTick(() => {
        const _this = this;
        const Swiper2 = new Swiper(".swiper-container", {
          loop: true, // 循环模式选项
          effect: "fade",
          fadeEffect: {
            crossFade: true,
          },
          autoplay: {
            delay: 2000,
            disableOnInteraction: false,
          },
          // 如果需要分页器
          pagination: {
            el: ".swiper-pagination",
            clickable: true,
          },
          // 如果需要前进后退按钮
          navigation: {
            nextEl: ".swiper-button-next",
            prevEl: ".swiper-button-prev",
          },
          // 如果需要滚动条
          scrollbar: {
            el: ".swiper-scrollbar",
          },
          // on: {
          //   slideChange(swiper) {
          //     console.log(this.activeIndex);
          //     console.log(_this.imgList[this.activeIndex]);
          //     _this.bgStyle = {
          //       background: `url(${_this.imgList[this.activeIndex]})`,
          //     };
          //     console.log();
          //   },
        });
        //背景颜色随轮播图片而改变
        const bgcImg = this.imgList;
        const bgColor = this.$refs.bgColor;
        Swiper2.on("slideChangeTransitionStart", function () {
          if (Swiper2.realIndex == 0) {
            bgColor.style.backgroundImage = `url(${bgcImg[Swiper2.realIndex]})`;
            bgColor.style.backgroundSize = `6000px`;
            bgColor.style.backgroundPosition = `center`;
          } else if (Swiper2.realIndex == 1) {
            bgColor.style.backgroundImage = `url(${bgcImg[Swiper2.realIndex]})`;
            bgColor.style.backgroundSize = `6000px`;
            bgColor.style.backgroundPosition = `center`;
          } else if (Swiper2.realIndex == 2) {
            bgColor.style.backgroundImage = `url(${bgcImg[Swiper2.realIndex]})`;
            bgColor.style.backgroundSize = `6000px`;
            bgColor.style.backgroundPosition = `center`;
          } else if (Swiper2.realIndex == 3) {
            bgColor.style.backgroundImage = `url(${bgcImg[Swiper2.realIndex]})`;
            bgColor.style.backgroundSize = `6000px`;
            bgColor.style.backgroundPosition = `center`;
          } else if (Swiper2.realIndex == 4) {
            bgColor.style.backgroundImage = `url(${bgcImg[Swiper2.realIndex]})`;
            bgColor.style.backgroundSize = `6000px`;
            bgColor.style.backgroundPosition = `center`;
          } else if (Swiper2.realIndex == 5) {
            bgColor.style.backgroundImage = `url(${bgcImg[Swiper2.realIndex]})`;
            bgColor.style.backgroundSize = `6000px`;
            bgColor.style.backgroundPosition = `center`;
          } else if (Swiper2.realIndex == 6) {
            bgColor.style.backgroundImage = `url(${bgcImg[Swiper2.realIndex]})`;
            bgColor.style.backgroundSize = `6000px`;
            bgColor.style.backgroundPosition = `center`;
          } else if (Swiper2.realIndex == 7) {
            bgColor.style.backgroundImage = `url(${bgcImg[Swiper2.realIndex]})`;
            bgColor.style.backgroundSize = `6000px`;
            bgColor.style.backgroundPosition = `center`;
          }
        });
      });
    },
  },
  computed: {
    imgList() {
      const cc = [];
      this.bannerImgList.forEach((item) => {
        // this.cc.push(item.pic);
        return cc.push(item.pic);
      });
      return cc;
    },

    imgOne() {
      return this.$refs.dataMsg;
    },
  },

  // 组件挂载获取首页数据
  mounted() {
    this.$nextTick(() => {
      // this.showBgImg = this.$refs.dataMsg;
      console.log("背景图参数", this.cc);
    });

    console.log(this.$refs);

    // 创建swiper对象
    this.getHomePageList();
    // console.log(this.banner);

    // new Swiper(".swiper", {
    //   direction: "vertical", // 垂直切换选项
    //   loop: true, // 循环模式选项
    //   effect: "fade",
    //   fadeEffect: {
    //     crossFade: true,
    //   },
    //   autoplay: {
    //     delay: 2000,
    //     disableOnInteraction: false,
    //   },
    //   // 如果需要分页器
    //   // pagination: {
    //   //   el: ".swiper-pagination",
    //   // },
    //   // 如果需要前进后退按钮
    //   navigation: {
    //     nextEl: ".swiper-button-next",
    //     prevEl: ".swiper-button-prev",
    //   },
    //   // 如果需要滚动条
    //   scrollbar: {
    //     el: ".swiper-scrollbar",
    //   },
    // });
    // var mySwiper = new Swiper(".floorSwiper", {
    //   loop: true, // 循环模式选项
    //   autoplay: {
    //     disableOnInteraction: false,
    //   },
    //   // 如果需要分页器
    //   pagination: {
    //     el: ".swiper-pagination",
    //   },

    //   // 如果需要前进后退按钮
    //   navigation: {
    //     nextEl: ".swiper-button-next",
    //     prevEl: ".swiper-button-prev",
    //   },

    //   // 如果需要滚动条
    //   scrollbar: {
    //     el: ".swiper-scrollbar",
    //   },
    // });
  },
};
</script>

<style lang="less" scoped>
.loopTip {
  .swiper-container {
    width: 100%;
    height: 283px;
    background-size: 100%;
    background-position: center center;
    --swiper-pagination-color: #00ff33;
    --swiper-navigation-color: #d3d3d4;
    // 轮播图图片内容
    .swiper-wrapper {
      position: relative;
      width: 984px;
      height: 283px;
      margin: 0 auto;
      overflow: hidden;
      // border: 1px solid green;
      .swiper-slide {
        width: 730px;
        height: 100%;
        img {
          width: 730px;
          height: 100%;
        }
      }
      .swiper-right {
        position: absolute;
        top: 0;
        right: 0;
        z-index: 10;
        opacity: 0.9;
      }
    }
    :deep(.swiper-pagination) {
      position: absolute;
      height: 6px;
      width: 150px;
      left: 35%;
      bottom: 10px;
    }
    // 导航按钮
    .swiper-button-prev {
      position: absolute;
      top: 150px;
      left: 50px;
    }
    .swiper-button-next {
      position: absolute;
      top: 150px;
      right: 50px;
    }
  }
  .middle {
    background-color: #f5f5f5;
    // border: 1px solid #d3d3d3;
    .middle-content {
      width: 984px;
      margin: 0 auto;
      overflow: hidden;
      background-color: #ffffff;
      border: 1px solid #d3d3d3;
      border-top: none;
      .middle-left {
        float: left;
        width: 730px;
        box-sizing: border-box;
        border: 1px solid #d3d3d3;

        .middle-left-categoryHot {
          // border: 1px solid blue;
          padding-top: 20px;
          width: 700px;
          margin: 0 auto;
          .categoryHot-nav {
            // overflow: hidden;
            border-bottom: 2px solid #c10d0c;
            display: flex;
            height: 35px;
            justify-content: left;
            .icon-cent {
              .icons {
                width: 120px;
                font-size: 20px;
                div {
                  display: inline-block;
                  width: 6px;
                  height: 6px;
                  border: 4px solid #c21010;
                  border-radius: 50%;
                }
              }
              // border: 1px solid red;
              width: 130px;
              line-height: 35px;
            }
            .categoryHot-list {
              width: 250px;
              height: 35px;
              color: #667987;
              // border: 1px yellow solid;
              box-sizing: border-box;
              display: flex;
              align-items: center;

              .categoryHot-nav-list {
                font-size: 12px;
                display: flex;
                justify-content: space-around;

                // border: 1px solid green;
                li {
                  width: 50px;
                  box-sizing: border-box;
                  border-right: 1px solid #cccfda;
                  text-align: center;
                }
              }
            }
            p {
              display: flex;
              width: 100%;
              justify-content: flex-end;
              height: 35px;
              line-height: 35px;
            }
          }
          .categoryHot-content {
            width: 100%;
            // border: 1px solid blue;
            margin-top: 20px;
            .categoryHot-music-list {
              width: 100%;
              display: flex;
              justify-content: space-between;
              flex-wrap: wrap;
              li {
                width: 140px;
                height: 204px;
                margin-right: 1px;
                // flex: 25%;
                a {
                  width: 140px;
                  font-size: 14px;
                  color: #000000;
                  a:hover {
                    text-decoration: underline;
                    color: red;
                  }
                }
              }
            }
          }
        }
        .middle-left-ranking {
          padding-top: 20px;
          width: 700px;
          margin: 0 auto;
          background-color: #f4f4f4;
          // 头部样式
          .categoryHot-nav {
            // overflow: hidden;

            border-bottom: 2px solid #c10d0c;
            display: flex;
            height: 35px;
            justify-content: left;
            .icon-cent {
              .icons {
                width: 120px;
                font-size: 20px;
                div {
                  display: inline-block;
                  width: 6px;
                  height: 6px;
                  border: 4px solid #c21010;
                  border-radius: 50%;
                }
              }
              // border: 1px solid red;
              width: 130px;
              line-height: 35px;
            }

            p {
              display: flex;
              width: 100%;
              justify-content: flex-end;
              height: 35px;
              line-height: 35px;
            }
          }
          // 内容样式
          .ranking-content {
            box-sizing: border-box;
            .ranking-List1 {
              overflow: hidden;
              width: 230px;
              margin-top: 20px;
              float: left;
              box-sizing: border-box;
              border: 1px solid #cecece;
              .ranking-List1-img {
                overflow: hidden;
                width: 100%;
                height: 120px;
                padding-left: 19px;
                padding-top: 20px;
                background-color: #f4f4f4;
                img {
                  width: 80px;
                  height: 80px;
                  display: block;
                  float: left;
                  box-shadow: 0px 5px 10px #8e8e8e;
                }
                .ranking-List1-content {
                  width: 80px;
                  margin-left: 10px;
                  margin-top: 6px;
                  float: left;
                  a {
                    width: 50px;
                    text-decoration: none;
                    h3 {
                    }
                  }
                }
              }
              .ranking-List1-body {
                overflow: hidden;
                width: 100%;
                // border: 1px solid green;
                .cc {
                  overflow: hidden;
                  height: 35px;
                  padding-left: 20px;
                  background-color: #f4f4f4;
                  .ranking-List-body-num {
                    width: 35px;
                    height: 35px;
                    font-size: 16px;
                    line-height: 35px;
                    text-align: center;
                    float: left;
                  }
                  // .ranking-List-body-num:nth-child(3) {
                  //   color: red;
                  // }
                  .ranking-List-body-text {
                    width: 150px;
                    height: 35px;
                    font-size: 12px;
                    line-height: 35px;
                    float: left;
                  }
                }
                .search {
                  overflow: hidden;
                  height: 35px;
                  padding-left: 20px;
                  background-color: #f4f4f4;
                  a {
                    margin-right: 32px;
                    height: 100%;
                    display: block;
                    text-align: right;
                    line-height: 35px;
                  }
                }
                li:nth-child(odd) {
                  background-color: #e8e8e8;
                }
              }
            }
            .ranking-List1:nth-child(even) {
              border-left: none;
              border-right: none;
            }
          }
        }
      }
      .middle-right {
        // border: 1px solid #d3d3d3;
        border-left: none;
        border-right: none;
        width: 254px;
        float: left;
        box-sizing: border-box;
        .middle-right-user {
          overflow: hidden;
          padding-top: 20px;
          border-bottom: 1px solid #b2b2b2;
          background-color: #f5f5f5;
          .middle-right-userInfo {
            border: 0px solid #dadada;
            width: 100%;
            padding: 2px;

            .user-img {
              float: left;
              margin-left: 20px;
              margin-bottom: 20px;
              img {
                // vertical-align: bottom;
                width: 80px;
                height: 80px;
                display: block;
                cursor: pointer;
              }
            }
            .user-Message {
              width: 115px;
              margin-left: 18px;
              padding-top: 3px;
              // border: 1px solid red;
              float: left;
              .user-name {
                font-size: 14px;
                color: #333;
                span {
                  font-size: 20px;
                  line-height: 16px;
                }
              }
              .vip {
                margin-top: 5px;
                span {
                  color: #999;
                  font-size: 40px;
                  line-height: 17px;
                }
              }
              .sign-in {
                button {
                  width: 100px;
                  height: 31px;
                  border-radius: 5px;
                  color: #bebebe;
                  background-color: #ebebeb;
                  border: none;
                  cursor: pointer;
                  a {
                    width: 100%;
                    height: 100%;
                    text-decoration: none;
                  }
                }
              }
            }
            .proptype-list {
              margin-top: 10px;
              display: flex;
              justify-content: space-around;
              margin-bottom: 10px;
              width: 100%;
              li {
                border-right: 1px solid #e4e4e4;
                width: 81px;
                display: flex;
                justify-content: center;
                div {
                  p {
                    font-size: 20px;
                    color: #666;
                  }
                  p:hover {
                    color: #0c73c2;
                  }
                }
              }
            }
          }
        }
        .middle-right-singer {
          .singer-title {
            // margin: 0 20px;
            width: 220px;
            margin: 15px auto;

            p {
              float: left;
              font-size: 12px;
              font-weight: 700;
            }
            a {
              float: right;
              color: #666;
              font-size: 12px;
              font-weight: 400;
            }
          }
          .singer-list {
            width: 220px;
            float: left;
            padding-top: 6px;
            margin-left: 17px;
            margin-top: 5px;
            border-top: 1px solid #ccc;
            // border: 1px solid red;
            li {
              // border: 1px solid blue;
              border: 1px solid #ccc;
              margin-top: 14px;
              overflow: hidden;
              a {
                display: block;

                img {
                  float: left;
                  width: 62px;
                  height: 62px;
                  display: block;
                }

                .singer-message {
                  float: left;
                  margin-left: 14px;
                  width: 140px;
                  height: 62px;
                  box-sizing: border-box;
                  // border: 1px green solid;
                  background-color: #fafafa;
                  h4 {
                    margin: 10px 0;
                    color: #333;
                  }
                  p {
                    margin-top: 8px;
                  }
                }
              }
            }
          }
          .changeSc {
            button {
              width: 220px;
              height: 31px;
              margin-top: 14px;
              margin-left: 20px;
              margin-bottom: 20px;
              border-radius: 4px;
              border-style: none;
              font-size: 12px;
              font-weight: 700;
              cursor: pointer;
            }
            button:hover {
              background-color: cyan;
            }
          }
        }
        .middle-right-zhubo {
          width: 220px;
          margin: 0 auto;
          h3 {
            border-bottom: 1px solid #d3d3d3;
            padding-bottom: 5px;
          }
          .zhubo-list {
            margin-top: 15px;
            width: 100%;
            height: 50px;
            li {
              margin-bottom: 10px;
              img {
                width: 40px;
                display: block;
                float: left;
                margin-right: 10px;
              }
              div {
                .zhubo-name {
                  font-size: 12px;
                  line-height: 21px;
                  color: #333;
                }
                .zhubo-message {
                  text-overflow: ellipsis;
                  overflow: hidden;
                  white-space: nowrap;
                  font-size: 12px;
                  line-height: 21px;
                  color: #666;
                }
              }
            }
          }
        }
      }
    }
  }
}
</style>
